load("@rules_cc//cc:defs.bzl", "cc_library")

package(default_visibility = ["//visibility:public"])

cc_library(
    name = "base_blob",
    srcs = glob([
        "*.cc",
    ]),
    hdrs = glob([
        "*.h",
    ]),
    deps = [
        "@com_github_google_glog//:glog",
        "@cuda//:cuda",
    ],
)

# cc_library(
#     name = "blob",
#     srcs = [
#         "blob.cc",
#     ],
#     hdrs = [
#         "blob.h",
#     ],
#     deps = [
#         ":syncedmem",
#         "@com_github_google_glog//:glog",
#     ],
# )

# cc_library(
#     name = "common",
#     hdrs = [
#         "common.h",
#     ],
#     deps = [
#         # "@local_config_cuda//cuda:cudart",
#         "@cuda//:cuda",
#         # "@local_cuda//:cuda",
#     ],
# )

# #TOCHECK
# # cc_library(
# #     name = "options_define",
# #     hdrs = [
# #         "options_define.h.in", #????
# #     ],
# # )

# cc_library(
#     name = "syncedmem",
#     srcs = [
#         "syncedmem.cc",
#     ],
#     hdrs = [
#         "syncedmem.h",
#     ],
#     deps = [
#         ":common",
#         "@com_github_google_glog//:glog",
#     ],
# )